package com.asyf.consumer.config;

import com.asyf.consumer.feignservice.FeignSingleThreadPoolClient;
import feign.hystrix.FallbackFactory;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class MyFallbackFactory implements FallbackFactory<FeignSingleThreadPoolClient> {
    @Override
    public FeignSingleThreadPoolClient create(Throwable throwable) {
        log.info(throwable.getLocalizedMessage());
        return null;
    }
}
